package com.ruoyi.boss.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.boss.mapper.InvoiceManagementMapper;
import com.ruoyi.boss.domain.InvoiceManagement;
import com.ruoyi.boss.service.IInvoiceManagementService;

/**
 * 发票管理Service业务层处理
 * 
 * @author rui
 * @date 2025-08-18
 */
@Service
public class InvoiceManagementServiceImpl implements IInvoiceManagementService 
{
    @Autowired
    private InvoiceManagementMapper invoiceManagementMapper;

    /**
     * 查询发票管理
     * 
     * @param invoiceId 发票管理主键
     * @return 发票管理
     */
    @Override
    public InvoiceManagement selectInvoiceManagementByInvoiceId(Long invoiceId)
    {
        return invoiceManagementMapper.selectInvoiceManagementByInvoiceId(invoiceId);
    }

    /**
     * 查询发票管理列表
     * 
     * @param invoiceManagement 发票管理
     * @return 发票管理
     */
    @Override
    public List<InvoiceManagement> selectInvoiceManagementList(InvoiceManagement invoiceManagement)
    {
        return invoiceManagementMapper.selectInvoiceManagementList(invoiceManagement);
    }

    /**
     * 新增发票管理
     * 
     * @param invoiceManagement 发票管理
     * @return 结果
     */
    @Override
    public int insertInvoiceManagement(InvoiceManagement invoiceManagement)
    {
        return invoiceManagementMapper.insertInvoiceManagement(invoiceManagement);
    }

    /**
     * 修改发票管理
     * 
     * @param invoiceManagement 发票管理
     * @return 结果
     */
    @Override
    public int updateInvoiceManagement(InvoiceManagement invoiceManagement)
    {
        return invoiceManagementMapper.updateInvoiceManagement(invoiceManagement);
    }

    /**
     * 批量删除发票管理
     * 
     * @param invoiceIds 需要删除的发票管理主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceManagementByInvoiceIds(Long[] invoiceIds)
    {
        return invoiceManagementMapper.deleteInvoiceManagementByInvoiceIds(invoiceIds);
    }

    /**
     * 删除发票管理信息
     * 
     * @param invoiceId 发票管理主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceManagementByInvoiceId(Long invoiceId)
    {
        return invoiceManagementMapper.deleteInvoiceManagementByInvoiceId(invoiceId);
    }
}
